import type { RoleList } from '@/types/interface';


export interface RoleListResponse {
    code: number;
    message: string;
    data: {
        roles: RoleList[];
        total: number;
    };
}

export interface RoleResponse {
    errcode: number;
    message: string;
}

export interface RoleAllList {
    name: string;
    code: string;
}

export interface RoleAllResponse {
    errcode: number;
    message: string;
    data: RoleAllList[];
}

export interface RolePermissionResponse {
    errcode: number;
    message: string;
}

export interface RolePermissionListResponse {
    errcode: number;
    message: string;
    data: {
        permissionTree: any[];
        checkedKeys: any[];
    };
}


